import AdminLayout from '@/layout/index.vue'
import { adminMeta } from '@/views/admin/meta'
import { getRoutersByModules, sortRoutesByOrder } from 'vue3-common/utils/routerUtil'

const adminRoutes = getRoutersByModules(import.meta.glob('@/views/admin/**/*.vue'), AdminLayout, adminMeta)

export default sortRoutesByOrder(adminRoutes)
